package com.boyunv.observer.example02;
/*
 *@description
 *  买房摇号服务
 *@author boyunv
 *@create 2023/8/12 14:09
 *@version 1.0
 */

public class DrawHouseService {
    //摇号抽签
    public String  lots(String uId){
        if (uId.hashCode()%2==0){
            return "恭喜ID为"+uId+"的用户,在本次摇号中中签!~";
        }else {
            return "很遗憾ID为"+uId+"的用户,在本次摇号中未中签!~";
        }
    }
}
